#include "vector.h"

using namespace std;

class Test
{
public:
	Test() { cout << "A()" << endl; }
	Test(int) { cout << "A(int)" << endl; }
	Test(int, int) { cout << "A(int,int)" << endl; }
	~Test() { cout << "~A()" << endl; }
	Test(const Test&) { cout << "A(const A&)" << endl; }
	Test(Test&&) { cout << "A(&&)" << endl; }
};

int main()
{
	Test t1, t2, t3;
	cout << "--------------------------------" << endl;
	vector<Test> v;

	v.push_back(t1);
	v.push_back(t2);
	v.push_back(t3);
	v.emplace_back(0);
	cout << "--------------------------------" << endl;

	v.pop_back();

	/*for (int i = 0; i < 10; i++)
	{
		v.push_back(i);
	}

	while (!v.empty())
	{
		cout << v.back() << " ";
		v.pop_back();
	}
	cout << endl;*/
	return 0;
}